home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4448 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 69 6e 65 74 2e |Path: ne|ws.inet.|
|00000010| 66 69 21 75 73 65 6e 65 | 74 0a 46 72 6f 6d 3a 20 |fi!usene|t.From: |
|00000020| 48 61 72 72 69 20 48 61 | 6c 74 74 75 6e 65 6e 20 |Harri Ha|lttunen |
|00000030| 3c 48 61 72 72 69 2e 48 | 61 6c 74 74 75 6e 65 6e |<Harri.H|alttunen|
|00000040| 40 65 6e 65 72 6d 65 74 | 2e 66 69 3e 0a 4e 65 77 |@enermet|.fi>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 2b 2b 0a 53 | 75 62 6a 65 63 74 3a 20 |ng.c++.S|ubject: |
|00000070| 52 65 3a 20 51 3a 20 68 | 6f 77 20 74 6f 20 68 61 |Re: Q: h|ow to ha|
|00000080| 6e 64 6c 65 20 63 75 72 | 72 65 6e 63 79 3f 0a 44 |ndle cur|rency?.D|
|00000090| 61 74 65 3a 20 54 75 65 | 2c 20 33 30 20 4a 61 6e |ate: Tue|, 30 Jan|
|000000a0| 20 31 39 39 36 20 31 35 | 3a 30 38 3a 31 39 20 2b | 1996 15|:08:19 +|
|000000b0| 30 32 30 30 0a 4f 72 67 | 61 6e 69 7a 61 74 69 6f |0200.Org|anizatio|
|000000c0| 6e 3a 20 54 65 6c 65 63 | 6f 6d 20 46 69 6e 6c 61 |n: Telec|om Finla|
|000000d0| 6e 64 20 4e 65 77 73 20 | 53 65 72 76 69 63 65 0a |nd News |Service.|
|000000e0| 4d 65 73 73 61 67 65 2d | 49 44 3a 20 3c 33 31 30 |Message-|ID: <310|
|000000f0| 45 31 38 34 33 2e 33 34 | 42 33 40 65 6e 65 72 6d |E1843.34|B3@enerm|
|00000100| 65 74 2e 66 69 3e 0a 52 | 65 66 65 72 65 6e 63 65 |et.fi>.R|eference|
|00000110| 73 3a 20 3c 34 65 39 33 | 68 65 24 65 63 40 73 75 |s: <4e93|he$ec@su|
|00000120| 6e 2e 63 69 73 2e 73 6d | 75 2e 65 64 75 3e 0a 4e |n.cis.sm|u.edu>.N|
|00000130| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000140| 3a 20 68 61 6c 74 74 68 | 61 2e 65 6e 65 72 6d 65 |: haltth|a.enerme|
|00000150| 74 2e 66 69 0a 4d 69 6d | 65 2d 56 65 72 73 69 6f |t.fi.Mim|e-Versio|
|00000160| 6e 3a 20 31 2e 30 0a 43 | 6f 6e 74 65 6e 74 2d 54 |n: 1.0.C|ontent-T|
|00000170| 79 70 65 3a 20 74 65 78 | 74 2f 70 6c 61 69 6e 3b |ype: tex|t/plain;|
|00000180| 20 63 68 61 72 73 65 74 | 3d 75 73 2d 61 73 63 69 | charset|=us-asci|
|00000190| 69 0a 43 6f 6e 74 65 6e | 74 2d 54 72 61 6e 73 66 |i.Conten|t-Transf|
|000001a0| 65 72 2d 45 6e 63 6f 64 | 69 6e 67 3a 20 37 62 69 |er-Encod|ing: 7bi|
|000001b0| 74 0a 58 2d 4d 61 69 6c | 65 72 3a 20 4d 6f 7a 69 |t.X-Mail|er: Mozi|
|000001c0| 6c 6c 61 20 32 2e 30 62 | 35 20 28 57 69 6e 39 35 |lla 2.0b|5 (Win95|
|000001d0| 3b 20 49 29 0a 54 6f 3a | 20 64 62 6f 77 6d 61 6e |; I).To:| dbowman|
|000001e0| 40 70 6f 73 74 2e 73 6d | 75 2e 65 64 75 0a 0a 44 |@post.sm|u.edu..D|
|000001f0| 61 6d 6f 6e 20 42 6f 77 | 6d 61 6e 20 77 72 6f 74 |amon Bow|man wrot|
|00000200| 65 3a 0a 3e 20 57 68 61 | 74 20 64 61 74 61 20 74 |e:.> Wha|t data t|
|00000210| 79 70 65 20 69 73 20 75 | 73 65 64 20 66 6f 72 20 |ype is u|sed for |
|00000220| 63 75 72 72 65 6e 63 79 | 20 77 68 65 6e 20 79 6f |currency| when yo|
|00000230| 75 20 77 61 6e 74 20 22 | 70 72 65 63 69 73 69 6f |u want "|precisio|
|00000240| 6e 20 61 73 0a 3e 20 64 | 69 73 70 6c 61 79 65 64 |n as.> d|isplayed|
|00000250| 3f 22 20 20 57 68 65 6e | 20 75 73 69 6e 67 20 74 |?" When| using t|
|00000260| 68 65 20 66 6c 6f 61 74 | 20 6f 72 20 64 6f 75 62 |he float| or doub|
|00000270| 6c 65 20 64 61 74 61 20 | 74 79 70 65 73 2c 20 79 |le data |types, y|
|00000280| 6f 75 20 72 75 6e 20 69 | 6e 74 6f 0a 3e 20 74 68 |ou run i|nto.> th|
|00000290| 65 20 70 72 6f 62 6c 65 | 6d 20 6f 66 20 69 6d 70 |e proble|m of imp|
|000002a0| 72 65 63 69 73 69 6f 6e | 2e 20 20 49 6e 20 6f 74 |recision|. In ot|
|000002b0| 68 65 72 20 77 6f 72 64 | 73 2c 20 49 20 77 61 6e |her word|s, I wan|
|000002c0| 74 20 74 6f 20 61 63 74 | 75 61 6c 6c 79 20 72 6f |t to act|ually ro|
|000002d0| 75 6e 64 0a 3e 20 6f 66 | 66 20 6d 79 20 6e 75 6d |und.> of|f my num|
|000002e0| 62 65 72 73 20 77 68 65 | 6e 20 6e 65 63 65 73 73 |bers whe|n necess|
|000002f0| 61 72 79 20 74 6f 20 63 | 72 65 61 74 65 20 72 65 |ary to c|reate re|
|00000300| 61 6c 20 61 6d 6f 75 6e | 74 73 20 6f 66 20 45 58 |al amoun|ts of EX|
|00000310| 41 43 54 4c 59 20 34 37 | 2e 32 33 2c 0a 3e 20 6f |ACTLY 47|.23,.> o|
|00000320| 72 20 77 68 61 74 65 76 | 65 72 20 74 68 65 20 63 |r whatev|er the c|
|00000330| 61 73 65 20 6d 61 79 20 | 62 65 2e 0a 3e 20 0a 0a |ase may |be..> ..|
|00000340| 54 72 79 20 52 6f 67 75 | 65 20 57 61 76 65 27 73 |Try Rogu|e Wave's|
|00000350| 20 4d 6f 6e 65 79 2e 68 | 2b 2b 20 6c 69 62 72 61 | Money.h|++ libra|
|00000360| 72 79 2e 0a 0a 42 79 20 | 75 73 69 6e 67 20 69 6e |ry...By |using in|
|00000370| 74 65 72 67 65 72 73 2c | 20 79 6f 75 20 63 61 6e |tergers,| you can|
|00000380| 20 61 6c 77 61 79 73 20 | 6d 61 6b 65 20 79 6f 75 | always |make you|
|00000390| 72 20 63 61 6c 63 75 6c | 61 74 69 6f 6e 73 20 62 |r calcul|ations b|
|000003a0| 79 20 6d 75 6c 74 69 70 | 6c 79 69 6e 67 20 0a 61 |y multip|lying .a|
|000003b0| 6c 6c 20 74 68 65 20 6e | 65 65 64 65 64 20 76 61 |ll the n|eeded va|
|000003c0| 6c 75 65 73 20 62 79 20 | 31 30 30 20 28 6f 72 20 |lues by |100 (or |
|000003d0| 77 68 61 74 20 65 76 65 | 72 20 69 73 20 6e 65 63 |what eve|r is nec|
|000003e0| 65 73 73 61 72 79 29 20 | 62 65 66 6f 72 65 20 68 |essary) |before h|
|000003f0| 61 6e 64 6c 69 6e 67 20 | 0a 74 68 65 6d 20 69 6e |andling |.them in|
|00000400| 20 65 63 6e 6f 6d 69 63 | 61 6c 20 63 61 6c 63 75 | ecnomic|al calcu|
|00000410| 6c 61 74 69 6f 6e 73 2e | 20 54 68 69 73 20 6f 66 |lations.| This of|
|00000420| 20 63 6f 75 72 73 65 20 | 68 61 73 20 69 74 73 20 | course |has its |
|00000430| 64 72 61 77 62 61 6b 63 | 73 2c 20 62 75 74 20 69 |drawbakc|s, but i|
|00000440| 74 20 0a 69 73 20 61 20 | 76 65 72 79 20 73 69 6d |t .is a |very sim|
|00000450| 70 6c 65 20 61 6e 64 20 | 75 73 65 66 75 6c 20 6d |ple and |useful m|
|00000460| 65 74 68 6f 64 20 66 6f | 72 20 73 6f 6d 65 20 73 |ethod fo|r some s|
|00000470| 69 6d 70 6c 65 20 63 61 | 73 65 73 2e 0a |imple ca|ses.. |
+--------+-------------------------+-------------------------+--------+--------+